package com.yd.sdk.analysisFacebook;



import android.app.Activity;
import android.os.Bundle;
import com.facebook.FacebookSdk;
import com.facebook.LoggingBehavior;
import com.facebook.appevents.AppEventsLogger;
import com.yd.sdk.analysis.AnalysisAbstractClass;

public class AnalysisFacebook extends AnalysisAbstractClass {

    private AppEventsLogger _logger;

    @Override
    public void onCreate(Activity activity, Bundle savedInstanceState) {
        id = "Facebook";
        this.activity = activity;
        FacebookSdk.sdkInitialize(activity.getApplicationContext());

//        FacebookSdk.setApplicationId("367657058331721");
        FacebookSdk.setAutoLogAppEventsEnabled(true);
        FacebookSdk.setAdvertiserIDCollectionEnabled(false);

//        AppEventsLogger.activateApp(activity);


//        AppEventsLogger.activateApp(activity);
//        FacebookSdk.setAutoInitEnabled(true);
//        FacebookSdk.fullyInitialize();

        //_logger = AppEventsLogger.newLogger(activity);

//        FacebookSdk.setIsDebugEnabled(true);
//        FacebookSdk.addLoggingBehavior(LoggingBehavior.APP_EVENTS);
    }

    @Override
    public void onPause() {

    }

    @Override
    public void onResume() {

    }

    @Override
    public void onDestroy() {

    }

    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantRes) {

    }

    @Override
    public void Initialize(String key) {

    }

    @Override
    public void LogEvent(String name, String key, String message) {

    }
}
